import service from "../utils/request";

// 分类管理
export function categoryAdd() {
    return service({
        url: "/admin/clssify-addlist",
        method: "get",
    })
}
export function categoryList(data) {
    return service({
        url: "/admin/clssify-list",
        method: "get",
        params: data
    })
}
// 添加分类
export function addCategory(data) {
    return service({
        url: "/admin/clssify-add",
        method: "post",
        data
    })
}

// 修改数据
export function editCategory(data) {
    return service({
        url: "/admin/clssify-edit",
        method: "put",
        data
    })
}

//删除
export function delCategory(data) {
    return service({
        url: "/admin/clssify-del",
        method: "delete",
        data
    })
}
